<?php
/**
 * Celebrio FileSystem module
 *
 * @copyright  Copyright (c) 2011 Celebrio Software
 * @package    Celebrio
 * @subpackage FileSystem
 */
namespace Celebrio\FileSystem;

use Celebrio\FileSystem\FPrivilege;
use Celebrio\FileSystem\PermissionInformator;
use Celebrio\FileSystem\PermissionChecker;

/**
 * PermissonManager provides the methods for manipulation with
 * FileSystem permissions, ownership and so on.
 *
 * @author pavel
 * 
 * @fixme WTF is PermissionObject???
 */
class PermissionManipulator extends PermissionObject {

    private $informator;
    private $checker;

    public function __construct() {
         $this->informator = new PermissionInformator();
         $this->checker = new PermissionChecker();
    }

    public function addFilePrivilege(FPrivilege $privilege) {
//        if ($this->informator->privilegeExists($privilege)) {
//            //update privilege
//        } else {
//            //insert privilege
//        }
    }


    //public function updateFilePrivilege();

    //add permission

    //update permission

}


